package com.stylefeng.guns.modular.pay.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 微信用户信息
 * </p>
 *
 * @author stylefeng
 * @since 2018-09-07
 */
@TableName("api_member")
public class Member extends Model<Member> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 微信openid
     */
    private String openid;
    /**
     * 会员昵称
     */
    private String nickname;
    /**
     * 会员性别
     */
    private String sex;
    /**
     * 省份
     */
    private String province;
    /**
     * 城市
     */
    private String city;
    /**
     * 国家
     */
    private String country;
    /**
     * 头像
     */
    private String headimgurl;
    /**
     * 微信统一标识
     */
    private String unionid;
    /**
     * 手机号
     */
    private String phone;
    /**
     * 认证时间
     */
    @TableField("auth_time")
    private Date authTime;
    /**
     * 认证状态（0-未认证 1-认证中 2-已认证）
     */
    @TableField("auth_status")
    private Integer authStatus;
    /**
     * 商户编码
     */
    @TableField("member_no")
    private String memberNo;
    
    @TableField(exist=false)
    private String realName;
    
    @TableField(exist=false)
    private String merName;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getHeadimgurl() {
        return headimgurl;
    }

    public void setHeadimgurl(String headimgurl) {
        this.headimgurl = headimgurl;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getAuthTime() {
        return authTime;
    }

    public void setAuthTime(Date authTime) {
        this.authTime = authTime;
    }

    public Integer getAuthStatus() {
        return authStatus;
    }

    public void setAuthStatus(Integer authStatus) {
        this.authStatus = authStatus;
    }

    public String getMemberNo() {
        return memberNo;
    }

    public void setMemberNo(String memberNo) {
        this.memberNo = memberNo;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    
    
     
    public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}
	
	

	public String getMerName() {
		return merName;
	}

	public void setMerName(String merName) {
		this.merName = merName;
	}

	@Override
    public String toString() {
        return "Member{" +
        "id=" + id +
        ", openid=" + openid +
        ", nickname=" + nickname +
        ", sex=" + sex +
        ", province=" + province +
        ", city=" + city +
        ", country=" + country +
        ", headimgurl=" + headimgurl +
        ", unionid=" + unionid +
        ", phone=" + phone +
        ", authTime=" + authTime +
        ", authStatus=" + authStatus +
        ", memberNo=" + memberNo +
        "}";
    }
}
